import request from '@/assets/request';
export default{
    createFeedback(data){
        return request.post('/public/feedback',data);
    },
    getInfo(type){
        return request.get('/public/info',{params:type});
    },
    getMerchant(id){
        return request.get('/public/merchant',{params:id});
    },
    getMerchantPage(data){
        return request.get('/public/merchant/page',{params:data});
    },
    getMerchantList(){
        return request.get('/public/merchant/list');
    },
    getnews(id){
        return request.get('/public/news',{params:id});
    },
    getNewsPage(data){
        return request.get('/public/news/page',{params:data});
    },
    getProduct(id){
        return request.get('/public/product',{params:id});
    },
    getProductPage(data){
        return request.get('/public/product/page',{params:data})
    },
    createProductOrder(data){
        return request.post('/public/createProductOrder',data)
    },
    getSale(){
        return request.get('/public/sale')
    },
    getUser(data){
        return request.get('/admin/getuser',{params:data});
    },

}
